package com.bjsxt.recommendation.controller;

import com.bjsxt.recommendation.service.RecommendationService;
import com.livegoods.commons.vo.LivegoodsResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName : RecommendationController
 * @Description :
 * @Author : ZWZ
 * @Date: 2021/8/23 17:08
 */
@RestController
@CrossOrigin
public class RecommendationController {

    @Autowired
    private RecommendationService recommendationService;

    @GetMapping("/recommendation")
    public LivegoodsResult recommendation(String city) {
        return recommendationService.getRecommendationItem(city);
    }

}
